﻿@model IEnumerable<KRM.Core.vKRMRSViewRDM>

<table class="table table-hover table-bordered table-fix">
    <thead>
        <tr>
            <th>Action</th>
            <th>DisputeID</th>
            <th>DatePlaced</th>
            <th>AddedBy</th>
            <th>OrderItem</th>
            <th>ApprovedOn</th>
            <th>ApprovedByKRM</th>
            <th>Reason</th>
            <th>ReasonDetail</th>
            <th>CollectionStatus</th>
            <th>ReplacementStatus</th>
        </tr>
    </thead>
    <tbody>
        @if (Model != null)
        {
            foreach (var item in Model)
            {
                <tr>
                    <td>
                    <div class="btn-group">
						<a href="#" data-toggle="dropdown" class="btn dropdown-toggle"><i class="icon-cog"></i> <span class="caret"></span></a>
						<ul class="dropdown-menu dropdowm-right">
							<li>
								<a href="javascript:;" onclick="Popup('/rdm/viewrdm/@item.DisputeID', 1357, 670)">View RDM</a>
							</li>
							<li>
								<a href="javascript:;" onclick="CancelRdm(@item.DisputeID, @item.OrderID, '@item.Order_Items')">Cancel RDM</a>
							</li>
                            <li>
                                <a href="javascript:;" onclick="PopupCenter('/rdm/editphoto/@item.DisputeID', 600, 500)">Edit photos</a>
                            </li>
						</ul>
					</div>
                    </td>
                    <td>
                        @item.DisputeID
                    </td>
                    <td>@item.DatePlaced</td>
                    <td>@item.AddedBy</td>
                    <td>@item.Order_Items</td>
                    <td>@item.ApprovedOn</td>
                    <td>@item.ApprovedByKRM</td>
                    <td>@item.Reason</td>
                    <td>@item.ReasonDetail</td>
                    <td>@item.CollectionStatus</td>
                    <td>@item.ReplacementStatus</td>
                </tr>
            }
        }
    </tbody>
</table>
